GATHER HEADLINES
1Page内に情報を全部集めちゃう
KJ法やり放題!
使い方Image
https://gyazo.com/f8f4d1ece24d1376cbf9c9f08c35c1a3
code:script.js
scrapbox.PageMenu.addMenu({
title: 'GATHER HEADLINES',
onClick: () => {
var headlines = [];
for (let line of scrapbox.Page.lines) {
if (!line.section.start) continue
var title = line.text
//title = title.replace( /\[([^\\]+)\.icon\]/g,"($1)"); //title = title.replace( /\[([^\\]+)\]/g,"$1"); const headline = title
headlines.push(headline)
}
if(navigator.clipboard){
navigator.clipboard.
writeText(headlines.join('\n'));
}
}
})